
env = Environment()
env[ 'CCFLAGS' ] = '-g -O2 -fPIC -Wall -Wno-sign-compare'
env[ 'CPPPATH' ] = [ '../include', '../../include', '../../../include', '/home/s/include', ]
env[ 'CPPFLAGS' ] = []
env[ 'LIBDIR' ] = '../../lib'
env[ 'LIBPATH' ] = [ '/home/s/lib/static', ]
env[ 'LIBS' ] = ['boost_filesystem-mt', 'boost_system-mt', 'boost_thread-mt','pthread',]

libdir = '../../lib'

lib_logging = '%s/bocat_logging' % libdir

libfile = env.StaticLibrary('bocat_logging', ['tinylog.cpp',])
libfilename = str(libfile[0])

env.Command( '%s/%s' % (libdir, libfilename), libfilename, Copy("$TARGET","$SOURCE") )


libfile = env.StaticLibrary('bocat_common', ['md5.cpp','url.cpp','time.cpp','zlib.cpp',])
libfilename = str(libfile[0])

env.Command( '%s/%s' % (libdir, libfilename), libfilename, Copy("$TARGET","$SOURCE") )


